<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>订单商家</title>
    <link rel="stylesheet" type="text/css" th:href="@{/layui/css/layui.css}">
    <script type="text/javascript" src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <script type="text/javascript" th:src="@{/layui/layui.js}"></script>
    <script type="text/javascript" th:src="@{/js/orderShop.js}"></script>
</head>
<body>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
            <div class="layui-form toolbar">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <select id="orderSltKey">
                            <option value="">搜索条件</option>
                            <option value="userName">用户名</option>
<!--                            <option value="userNumber">手机号</option>-->
<!--                            <option value="rolename">订单号</option>-->
<!--                            <option value="rolename">订单状态</option>-->
                        </select>
                    </div>
                    <div class="layui-inline">
                        <input id="orderEdtSearch" class="layui-input" type="text" placeholder="输入关键字"/>
                    </div>
<!--                    <div class="layui-inline">-->
<!--                        <input type="text" id="start_time" name="start_time" autocomplete="off" placeholder="请输入开始时间"-->
<!--                               class="layui-input">-->
<!--                    </div>-->

<!--                    <div class="layui-inline">-->
<!--                        <input type="text" id="end_time" name="end_time" autocomplete="off" placeholder="请输入结束时间"-->
<!--                               class="layui-input">-->
<!--                    </div>-->


                    <div class="layui-inline">
                        <button id="orderBtnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索
                        </button>

                        <button id="userBtnupa" class="layui-btn layui-btn-warm icon-btn"><i
                                class="layui-icon">&#xe667;</i>关闭订单
                        </button>

                    </div>
                </div>
            </div>
            <table id="shopOrders" lay-filter="AOrders"></table>

        </div>
    </div>

</div>
</body>
<script type="text/html" id="barDemo">
    {{# if(d.orderStatus=='10'){}}
    <a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="modify">查看订单信息</a>
    {{# } else if(d.orderStatus=='20') {}}
    <a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="modify">查看订单信息</a>
    {{# } else if(d.orderStatus=='30') {}}
    <a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="modify">查看订单信息</a>
    {{# } else if(d.orderStatus=='40') {}}
    <a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="modify">查看订单信息</a>
    {{# } else if(d.isComment=='1') {}}
    <a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="modify">查看订单信息</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="lookUser">订单评价回复</a>
    {{# } else {  }}
    <a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="modify">查看订单信息</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="tableData">订单处理</a>
    {{# } }}

</script>
</body>
</html>